package com.googlecode.gwtbb.client.shared.entity.picture;

import com.googlecode.gwtbb.client.shared.entity.properties.HasSnapDate;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.List;

/**
 * @author Abraham Grief
 * @version $Id$
 * @since Jul 31, 2008
 */
public class ThumbBase extends ImagePropertiesImpl implements HasSnapDate, Serializable {
	public static final String THUMB_ID = "thumbId";
	public static final String PICTURE_ID = PictureBase.PICTURE_ID;
	public static final List<String> PROPERTIES = Collections.unmodifiableList(Arrays.asList(
		THUMB_ID,
		PICTURE_ID,
		URL,
		BYTES,
		WIDTH,
		HEIGHT,
		SNAP_DATE
	));
	public static final List<String> UPDATE_PROPERTIES = Collections.unmodifiableList(Arrays.asList(
		PICTURE_ID,
		URL,
		BYTES,
		WIDTH,
		HEIGHT
	));

	protected Long thumbId;
	protected Long pictureId;
	protected Date snapDate;

	public Long getPictureId() {
		return pictureId;
	}

	public void setPictureId(Long pictureId) {
		this.pictureId = pictureId;
	}

	public Date getSnapDate() {
		return snapDate;
	}

	public void setSnapDate(Date snapDate) {
		this.snapDate = snapDate;
	}

	public Long getThumbId() {
		return thumbId;
	}

	public void setThumbId(Long thumbId) {
		this.thumbId = thumbId;
	}
}
